import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// iview
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
// echarts
import echarts from 'echarts'

// 全局component
import './components'
// 全局样式
import './assets/style/index.scss'
import './assets/fonts/iconfont.css'
import config from '@/config'
// 导入api
import api from './api'
import { CONFIG } from './common/index'
//引入正则
import regex from './libs/regex'
Vue.use(CONFIG)
Vue.use(ViewUI)
// 引echarts
import ECharts from 'vue-echarts/components/ECharts'
import 'echarts/lib/chart/bar'        // 柱状图
import 'echarts/lib/chart/pie'        // 饼图
import 'echarts/lib/chart/line'       // 折线
Vue.component('v-chart', ECharts)
// Vue.prototype.$echarts = ECharts

Vue.config.productionTip = false
Vue.prototype.$config = config
Vue.prototype.$api = api
Vue.prototype.$regex = regex
Vue.prototype.$echarts = echarts; 

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
